import React from 'react';

class About extends React.Component {
  constructor (props) {
    super(props)
    this.state = {
     
    }
    this.openUrl = this.openUrl.bind(this);
   
  }
  openUrl(){
    // 路由跳转
    this.props.history.push(`/new`)
  }

  render () {
    return (
      <div className="about">
        <button onClick={this.openUrl}>打开一个新窗口</button>
      </div>
    )
  }
}

export default About